cssnode: Implement refcounting
authorBenjamin Otte <otte@redhat.com>
Mon, 26 Jan 2015 05:13:01 +0000 (06:13 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 Mar 2015 14:23:29 +0000 (15:23 +0100)
commita589f988218d343e3aa0f7d98d16b8e52a86b7bc
tree0e76d6f835c5c476ceb2c66992893706cfe5c691
parent721dce73e088ed92e74a5b6593f58e91621cc6ea
cssnode: Implement refcounting

The parent refs the child, so gtk_css_node_set_parent() adds/removes a
reference.

We should probably refactor this so that we name the function
parent.add(node) instead of node.set_parent(parent) - makes the
refcounting more clear.
gtk/gtkcssnode.c
gtk/gtkstylecontext.c